<!DOCTYPE html>
<html>
    <head>
        <title>Issue 872: Refreshing an iframe doesn't show its errors</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
        <style type="text/css">
        #iframe {
            width: 200px;
            height: 50px;
            border: none;
        }

        #refreshIFrame
        {
            display: block;
        }
        </style>
        <script type="text/javascript">
        function refreshIFrame()
        {
            var iframe = document.getElementById("iframe");
            iframe.src = iframe.src;
        }
        </script>
    </head>
    <body>
        <header>
            <h1><a href="http://code.google.com/p/fbug/issues/detail?id=872">Issue 872</a>: Refreshing an iframe doesn't show its errors</h1>
        </header>
        <div>
            <section id="content">
                <iframe id="iframe" src="issue872-iframe.html"></iframe>
                <button id="refreshIFrame" onclick="refreshIFrame();">Refresh iframe</button>
            </section>
            <section id="description">
                <h3>Steps to reproduce</h3>
                <ol>
                    <li>Open Firebug</li>
                    <li>Enable and switch to the <em>Console</em> panel</li>
                    <li>Click the button <em>Refresh iframe</em></li>
                </ol>
                <h3>Expected result</h3>
                <ul>
                    <li>The error coming from the iframe should be listed inside the console.</li>
                </ul>
            </section>
            <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
        </div>
    </body>
</html>
